import request from '@/utils/request'
// 查询 活动列表
export function listActivity(query) {
    return request({
        url: '/dts/activityManage/list',
        method: 'get',
        params: query
    })
}

// 查询 详细
export function getActivity(id) {
    return request({
        url: '/dts/activityManage/' + id,
        method: 'get'
    })
}

// 新增 
export function addActivity(data) {
    return request({
        url: '/dts/activityManage',
        method: 'post',
        data: data
    })
}

// 修改 
export function updateActivity(data) {
    return request({
        url: '/dts/activityManage',
        method: 'put',
        data: data
    })
}

// 删除 
export function delActivity(id) {
    return request({
        url: '/dts/activityManage/' + id,
        method: 'delete'
    })
}
// 生成二维码
export function getQR(id) {
    return request({
        url: '/dts/activityManage/qr/' + id,
        method: 'get'
    })
}

// 查询 活动报名列表
export function listActSignup(query) {
    return request({
        url: '/dts/activityBm/list',
        method: 'get',
        params: query
    })
}

// 查询 活动签到列表
export function listActSignin(query) {
    return request({
        url: '/dts/activitySignIn/list',
        method: 'get',
        params: query
    })
}